API Documentation
Static Public Member Functions | List of all members
nkAstraeus::MaterialTypeUtils Class Referencefinal

Offers tools to work with the MATERIAL_TYPE enumeration. More...

Static Public Member Functions

static nkMemory::StringView enumToString (MATERIAL_TYPE value)
 
static MATERIAL_TYPE stringToEnum (nkMemory::StringView value)
 

Detailed Description

Offers tools to work with the MATERIAL_TYPE enumeration.

Member Function Documentation

◆ enumToString()

static nkMemory::StringView nkAstraeus::MaterialTypeUtils::enumToString ( MATERIAL_TYPE  value)
static

Translates an enumeration value into its string representation. For instance, PBS will get translated into "PBS". Any other value will be be translated with "UNKNOWN".

Parameters
valueThe enumeration value to translate.
Returns
The translated enumeration value as a string.

◆ stringToEnum()

static MATERIAL_TYPE nkAstraeus::MaterialTypeUtils::stringToEnum ( nkMemory::StringView  value)
static

Translates a string representation into its associated enumeration value. For instance, "PBS" will get translated into PBS. Any other value will be translated into PBS.

Parameters
valueThe string representation to translate.
Returns
The enumeration value the string represents.

The documentation for this class was generated from the following file: